package kd.bos.openapi.sdk.request;

import lombok.Getter;
import lombok.Setter;

/**
 * @Deacription 查询请求参数Dto
 * @author johnzou
 * @date 2022年4月6日
 */
@Setter
@Getter
public class RequestQueryDto<T>  extends RequestQueryCommonDto{
    // 请求参数data
    private T data;

    public RequestQueryDto() {
    }

    public static RequestQueryDto create(){
        RequestQueryDto requestQuery = new RequestQueryDto();
        return requestQuery;
    }

    public RequestQueryDto of(T data) {
        this.data = data;
        setPageNo(1);
        setPageSize(10);
        return this;
    }

}
